package com.uniledger.exchange.home.scheme.fragment.receive;

import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.uniledger.exchange.R;
import com.uniledger.exchange.base.fragment.BaseCoreFragment;


public abstract class CollectFragment extends BaseCoreFragment {

    private OnCollectListener mListener;

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        if (context instanceof OnCollectListener) {
            mListener = (OnCollectListener) context;
        } else {
            throw new RuntimeException(context.toString()
                    + " must implement OnFragmentInteractionListener");
        }
    }

    @Override
    public void onDetach() {
        super.onDetach();
        mListener = null;
    }
}
